var express = require('express');
var router = express.Router();
const checkToken = require('../../middleware/checkToken')
const CourseController = require('../../controllers/Course')

// 创建课程
router.post('/', checkToken, CourseController.create);
// 获取课程列表
router.get('/', checkToken, CourseController.getList);
// 删除
router.delete('/', checkToken, CourseController.deleteOne);
// 更新
router.patch('/', checkToken, CourseController.updateOne);

module.exports = router;
